package com.example.demo

import android.content.Context
import android.widget.Toast
import androidx.compose.foundation.Image
import androidx.compose.foundation.clickable
import androidx.compose.foundation.layout.Spacer
import androidx.compose.foundation.layout.height
import androidx.compose.foundation.layout.width
import androidx.compose.runtime.Composable
import androidx.compose.ui.Modifier
import androidx.compose.ui.res.painterResource
import androidx.compose.ui.unit.dp

@Composable
fun AppAddView(context: Context) {

    Spacer(modifier = Modifier.width(2.dp))
    Image(painter = painterResource(R.drawable.ic_add),
        contentDescription = "",
        modifier = Modifier.width(30.dp).height(30.dp)
            .clickable { Toast.makeText(context,"Add something", Toast.LENGTH_LONG).show() }
    )
    Spacer(modifier = Modifier.width(2.dp))
}